<!DOCTYPE html>
<html>
<head>
    <title>{{ $title }}</title>
    {{ HTML::style('/css/application.min.css') }}
    <link rel="shortcut icon" href="img/favicon.png">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta charset="utf-8">
    {{ HTML::script('lib/jquery/jquery-2.0.3.min.js') }}
    {{ HTML::script('lib/jquery-pjax/jquery.pjax.js') }}
    {{ HTML::script('lib/backbone/underscore-min.js') }}
    {{ HTML::script('js/settings.js') }}
</head>
<body>
<div class="single-widget-container">
    <section class="widget login-widget">
        <header class="text-align-center">
            @if(Session::has('message'))
                <h5 id="message">{{ Session::get('message') }}</h5>
            @endif
            <h4>Login to your account</h4>            
            @if($errors->has())
            <ul>
                @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
                @endforeach
            </ul>
            @endif
        </header>
        <div class="body">
            {{ Form::open(array('url' => 'login', 'class' => 'no-margin')) }}
            {{ Form::token() }}
                <fieldset>
                    <div class="form-group no-margin">
                        {{ Form::label('email', 'Email') }}

                        <div class="input-group input-group-lg">
                                <span class="input-group-addon">
                                    <i class="eicon-user"></i>
                                </span>
                            {{ Form::email('email', Input::old('email'), array('class' => 'form-control input-lg', 'placeholder' => 'Your Email', 'id' => 'email')) }}
                        </div>

                    </div>

                    <div class="form-group">
                        {{ Form::label('password', 'Password') }}

                        <div class="input-group input-group-lg">
                                <span class="input-group-addon">
                                    <i class="fa fa-lock"></i>
                                </span>
                            {{ Form::password('password', array('id' => 'password', 'class' => 'form-control input-lg', 'placeholder' => 'Your Password')) }}
                        </div>

                    </div>
                </fieldset>
                <div class="form-actions">
                    <button type="submit" class="btn btn-block btn-lg btn-danger">

                        <span class="small-circle"><i class="fa fa-caret-right"></i></span>
                        <small>Sign In</small>
                    </button>
                    <div class="forgot"><a class="forgot" href="#">Don't have an account ?</a></div>
                    
                    <a href="{{ URL::route('register') }}">
                        <button type="button" class="btn btn-block btn-lg btn-info">
                            <span class="small-circle"><i class="fa fa-caret-right"></i></span>
                            <small>Register Now</small>
                        </button>
                    </a>
                    <div class="forgot"><a class="forgot" href="#">Forgot Username or Password?</a></div>
                    <br>
                </div>
            {{ Form::close() }}
        </div>
    </section>
</div>
</body>
</html>